import * as homepageApi from '@/api/homepage';

export default {
  namespaced: true,
  state() {
    return {
      bomeBrandList: {},
    };
  },
  mutations: {
    SET_HOMEBRAND_LIST(state, newValue) {
      state.bomeBrandList = newValue;
    },
  },
  actions: {
    async upBomeBrand({ commit }) {
      const res = await homepageApi.homeBrand();
      commit('SET_HOMEBRAND_LIST', res);
    },
  },
};
